/**
  ******************************************************************************
  * @file    DPC_STM32_Interface.h
  * @author  STMicroelectronics
  * @version 1.0.0
  * @date    01-Mar-2024
  * @brief   Header file for the library wrapper
  * @details This file wrappes all services to run the DPC Application
  ******************************************************************************
  *
  * Copyright (c) 2022(-2024) STMicroelectronics
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file in
  * the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  ******************************************************************************
  *
  */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef _DPWR_INTERFACE_H
#define _DPWR_INTERFACE_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include <stdbool.h>
#include <stdint.h>

#include "stm32g4xx_hal.h"
#include "DPC_Lib_Conf.h"

/* Private includes ----------------------------------------------------------*/
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/* Exported functions prototypes ---------------------------------------------*/
/* PWM ticks conversion functions */
uint32_t HAL_HRTIM_FreqToTicks(HRTIM_HandleTypeDef *hhrtim, uint32_t Timers, uint32_t Frequency);
uint32_t HAL_HRTIM_NsToTicks(HRTIM_HandleTypeDef *hhrtim, uint32_t Timers, uint32_t Ns);
extern float __ArcTanFloat( float Id, float Iq );

/* Private variables */
/* Private defines -----------------------------------------------------------*/

#ifdef __cplusplus
}
#endif

#endif /* #ifndef _DPWR_INTERFACE_H */
